home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
util
/
setfont2
/
part01
/
README
next >
Wrap
Text File
|
1990-03-26
|
2KB
|
71 lines
SetFont V2.7 by Dave Haynie
SetFont V2.7 is a public domain program designed to allow the system
font of the Amiga to be changed in various different ways. The main bug fix
over V2.5 or V2.6 is a theoretically correct handling of resident vs. disk
fonts. At least, it seems to work correclty this time around. The program
is called from a shell or startup-sequence script, and has the form:
SetFont [fontname [point [places]]]
where:
fontname Specifys the name of a standard Amiga
bitmapped font from the FONTS: directory.
While any font can in theory be used, the
system has trouble with very large ones,
and some programs may have trouble with any
font that's not 8x8.
point Specifys the height of the font, in pixels.
If that actual size isn't found, the closest
available is substituted. The default for
this is 8.
places There are several places the system keeps
fonts. When you change to a working font
you may want that font everywhere in the
system, in which case, no specifier is set.
Otherwise, the following places are known
by SetFont:
BAR This is the "BarLayer" font for the WorkBench
screen. Among other things, the text in any
string gadgets BEFORE you select them comes
from this location.
SCREEN This specified the default font for the
WorkBench screen. All menus and newly built
windows will inherit this font as their
default font. Technically speaking, this is
a font descriptor stored in the screen
structure.
TITLES This specifies the font that's mainly used
for window title bars. Technically speaking,
this specifies the font of the screen's
RastPort.
WINDOW This specifies the font for the current window.
It will case that window to be cleared. The
reason for this is that the window's font is
not a default, but inherited from the screen
and stored in the window's ConUnit. That
screen clear is the result of rebuilding the
window's ConUnit to bring in the new font.
And that's about it. Please feel free to use this program and the
source code as you see fit. If you find any bugs, please let me know about
them.
-Dave Haynie
PLINK : hazy
bix : hazy
usenet : {rutgers,uunet}!cbmvax!daveh
Land : 284 Memorial Avenue
Gibbstown, NJ 08027